const { updateUserOverviews } = require("../../api/user")

module.exports = class HomeManageController {
    async updateOverviews(ctx) {
        const overviews = ctx.overviews
        const username = ctx.user.username
        const res = await updateUserOverviews(username, overviews)
        if (res.code === 20000) {
            return true
        } else {
            return false
        }
    }
}